<template>
  <div id="app">
    <!--  使用自定义插件    -->
    <div v-upper="msg" style="text-align: center; font-size: 30px; color: #409eff" v-show="false"></div>
    <HeaderComponent></HeaderComponent>
    <!-- 匹配路由组件，进行显示    -->
    <router-view></router-view>
    <FooterComponent v-show="!$route.meta.isHideFooter"></FooterComponent>
  </div>
</template>

<script>
import HeaderComponent from './components/Header';
import FooterComponent from './components/Footer';
export default {
  name: 'App',
  components: {
    HeaderComponent,
    FooterComponent,
  },

  data() {
    return {
      msg: "abc"
    }
  },

  mounted() {
    //派发一个action||获取商品分类的三级列表的数据
    this.$store.dispatch("getCategoryList");
  },
}
</script>

<style>
</style>
